package com.jrzh.mvc.controller.sys.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jrzh.framework.annotation.RequiredPermission;
import com.jrzh.framework.annotation.UserEvent;
import com.jrzh.framework.base.controller.BaseAdminController;
import com.jrzh.framework.bean.JqDataGrid;
import com.jrzh.mvc.constants.SysActionConstants;
import com.jrzh.mvc.search.sys.MobileSmsSendSearch;
import com.jrzh.mvc.service.sys.manage.SysServiceManage;
import com.jrzh.mvc.view.sys.MobileSmsSendView;

@RestController(MobileSmsSendController.LOCATION +"/MobileSmsSendController")
@RequestMapping(MobileSmsSendController.LOCATION)
public class MobileSmsSendController extends BaseAdminController{
	public static final String LOCATION = "sys/admin/mobileSmsSend";
	
	
	@Autowired
	SysServiceManage sysServiceManage;
	
	@PostMapping(value = "datagrid")
	@UserEvent(desc = "MobileSmsSend列表查询")
	@RequiredPermission(key =  SysActionConstants.INDEX)
	public JqDataGrid<MobileSmsSendView> datagrid(MobileSmsSendSearch search) {
		JqDataGrid<MobileSmsSendView> dg = new JqDataGrid<MobileSmsSendView>();
	    try{
	    	dg = sysServiceManage.mobileSmsSendService.datagrid(search);
	    } catch (Exception e){
	    	e.printStackTrace();
	    }
		return dg;
	}
	
	@Override
	protected void setData() {
	}

}
